<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>

<t:masterpage>
	<jsp:body>
	<h2>Notification Management</h2>
       <form:form method="post"
			action="notification/save.html" 
			modelAttribute="notificationSettingsPageModel">
			<form:hidden path="settings.id" />
			<div class="horizontal_pad">
	            <table>
	                <tr>
	                    <td><form:label path="settings.notificationPeriod">Coming birthday notification days before:</form:label></td>
	                    <td class="horizontal_pad"><form:input path="settings.notificationPeriod"/></td>
	                </tr>
	                <tr>
	                    <td><form:label path="settings.notificationTime">Mailing time:</form:label></td>
	                    <td class="horizontal_pad"><form:input path="settings.notificationTime"/></td>
	                </tr>
	                <tr>
	                    <td><form:label path="settings.smtpServerAddress">SMTP server address:</form:label></td>
	                    <td class="horizontal_pad"><form:input path="settings.smtpServerAddress"/></td>
	                </tr>
	                <tr>
	                    <td><form:label path="settings.smtpUsername">SMTP Username:</form:label></td>
	                    <td class="horizontal_pad"><form:input path="settings.smtpUsername"/></td>
	                </tr>
	                <tr>
	                    <td><form:label path="settings.smtpPassword">SMTP Password:</form:label></td>
	                    <td class="horizontal_pad"><form:input path="settings.smtpPassword" type="password"/></td>
	                </tr>
	            </table>
            </div>
            <div class="form-actions">
                <input class="btn btn-primary" type="submit" value="Save" />
            </div>
        </form:form>
       
    </jsp:body>
</t:masterpage>
